package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.feign.falllback.IntergralFeignApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhenfeng
 * @Date 2021/5/20
 */
@FeignClient(name = "intergral-service", fallback = IntergralFeignApiFallback.class)
public interface IntergralFeignApi {

    @RequestMapping("/intergral/payIntergral")
    Result<String> payIntergral(@RequestBody OperateIntergralVo operateIntergralVo);

    @RequestMapping("/intergral/refundIntergral")
    Result<String> refundIntergral(@RequestBody OperateIntergralVo vo);
}
